#!/bin/python

import pickle
import pprint

the_dict = {'foo': 2, 'bar': 5}

with open('pickled_dict', 'w') as file:
	pickle.dump(the_dict, file)

locals().update(the_dict)

pprint.pprint(foo)
pprint.pprint(bar)